﻿using Basic.FormRemoteModel.FormView;
using Basic.UserFormService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.UserFormService.RpcEvent
{
    internal class FormViewEvent : IRpcApiService
    {
        private readonly IFormViewGenerateService _Generate;

        public FormViewEvent ( IFormViewGenerateService generate )
        {
            this._Generate = generate;
        }

        public void GenerateFormView ( GenerateFormView obj )
        {
            this._Generate.GenerateView(obj.FormId);
        }
    }
}
